package com.example.park_management.mapper;

import com.example.park_management.entity.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface DeptMapper {
    @Select("SELECT * FROM dept_management")
    List<Dept> getDeptById();

    @Delete("DELETE  FROM dept_management WHERE id = #{id}")
    boolean deleteDept(Integer id);
}
